<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>index.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div align="center">

<form action="init" th:object="${userBean}" method="post">
<div><h3>用  户  登   录</h3></div>

<div><label><span style="display:inline;color:red;" th:text="${indexmessage}"></span></label></div>

<div>
<tr>
<td>用户ID</td>
<td><input name="userId" type="text" /></td>
</tr>
</div>

<div>
<tr>
<td>密    码</td>
<td><input name="userPassword" type="password" /></td>
</tr>
</div>

<div>
<tr>
<td><input type="submit" value="登   录" name="searchall" /></td>
<td><input type="submit" value="注   册" name="zhuce" /></td>
</tr>
</div>

</form>

<div>
<span th:if="${#fields.hasErrors('${userBean.*}')}"><span style="display:inline;color:red;" th:errors="${userBean.*}"></span></span>
<span th:text="${message}"></span>
</div>
</div>
</body>
</html>